﻿@model QiuShiBaiKe.Model.Message[]

@using QiuShiBaiKe.Web

@{
    ViewBag.Title = "最新糗事";
    Layout = "~/Views/DefaultLayout.cshtml";
}

@{
   foreach(var msg in Model)
   {
        <div class="block untagged" id="qiushi_tag_@msg.Id">
        <div title="@msg.CreateDateTime" class="content">
        <strong>@msg.User.UserName</strong>： @msg.Msg
        </div>
        @{
            if(!string.IsNullOrWhiteSpace(@msg.ImageUrl)) 
            {
                <div class="thumb">
                <img src="@msg.ImageUrl">
                </div>
            }
        }
        <div class="bar" id="qiushi_counts_36388741">
        <ul>
        <li class="up" id="vote-up-36388741">
        <a title="4864个顶" id="up-36388741" href="#">4864</a>
        </li>
        <li class="down" id="vote-dn-36388741">
        <a title="-136个拍" id="dn-36388741" href="#">-136</a>
        </li>
        <li class="comment">
        <a title="38条评论" class="qiushi_comments" id="c-36388741" href="/Message/Index/@msg.Id">38</a>
        </li>
        <li class="share">
        <a title="分享">分享</a>
        </li>
        </ul>
        <div class="sharebox">
        <div class="bdshare_t bds_tools get-codes-bdshare" id="bdshare" data="">
        <a class="bds_renren">人人网</a>
        <a class="bds_qzone">QQ空间</a>
        <a class="bds_tsina">新浪微博</a>
        <a class="bds_tqq">腾讯微博</a>
        <div class="arrow"></div>
        </div>
        </div>
        </div>

        </div>

        <div class="shadow"></div>       
   }
   <div class="pagebar">
   @WebHelper.Pager("/Message/Page/{pageIndex}", ViewBag.pageIndex, ViewBag.totalCount, ViewBag.pagesize)
   </div>
}

